<template>
 <div class="student">
    <h2 @click="showName">名称：{{name}}</h2>
    <h2>性别：{{sex}}</h2>
 </div>
</template>

<script>
// import { mixin } from '../mixin'
export default {
  name: 'Student',
  // mixins: [mixin],
  data() {
    return {
      name: "张三",
      sex: '男',
      x: 600
    }
  },
  // mounted() {
  //   console.log('Student mounted')
  // }
}
</script>